//
//  MRCityLocalDiscount_CollectionViewCell.m
//  Travel_World
//
//  Created by dllo on 15/10/16.
//  Copyright © 2015年 TLS. All rights reserved.
//

#import "MRCityLocalDiscount_CollectionViewCell.h"

@implementation MRCityLocalDiscount_CollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self  = [super initWithFrame:frame];
    if (self) {
        self.ImageView = [[UIImageView alloc] initWithFrame:CGRectMake(5 * WID, 0, self.contentView.frame.size.width - 10 * WID, 100 * HEI)];
        [self.contentView addSubview:self.ImageView];
        
        self.title = [[UILabel alloc] initWithFrame:CGRectMake(5 * WID, 105 * HEI, self.contentView.frame.size.width - 10 * WID, 40 * HEI)];
        self.title.font = [UIFont systemFontOfSize:15];
        self.title.numberOfLines = 2;
        [self.contentView addSubview:self.title];
        
        self.priceoff = [[UILabel alloc] initWithFrame:CGRectMake(5 * WID, 165 * HEI, self.contentView.frame.size.width - 10 * WID, 20 * HEI)];
        self.priceoff.font = [UIFont systemFontOfSize:13];
        self.priceoff.textColor = [UIColor grayColor];
        [self.contentView addSubview:self.priceoff];
        
        self.price = [[UILabel alloc] initWithFrame:CGRectMake(80 * WID, 165 * HEI, 75 * WID, 20 * HEI)];
        self.price.textColor = [UIColor redColor];
        self.price.font = [UIFont systemFontOfSize:15];
        self.price.textAlignment = NSTextAlignmentRight;
        [self.contentView addSubview:self.price];
    }
    return self;
}


@end
